package com.sinothk.gpserver.modules.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sinothk.gpserver.modules.biz.entity.GroupEntity;
import com.sinothk.gpserver.modules.biz.entity.SearchUserEntity;
import com.sinothk.gpserver.modules.biz.entity.UserScore;
import com.sinothk.gpserver.modules.system.entity.UserEntity;
import org.apache.ibatis.annotations.Select;

/**
 * 编写 Liang Y.T.
 * 时间 2021/6/26 13:45
 */
public interface CommMapper extends BaseMapper<UserEntity> {

    @Select("SELECT u.* From sys_user u WHERE locate ('${keywords}' , u.account) > 0")
    IPage<SearchUserEntity> searchUserByKeywords(Page<SearchUserEntity> page, String keywords);
}
